var page = sm("do_Page");
var camera = sm("do_Camera");
var album = sm("do_Album");

var picMenuBg = ui("picMenuBg");
picMenuBg.on("touch", function() {
	picMenuBg.visible = false;
});

ui("btnCancle").on("touch", function() {
	picMenuBg.visible = false;
});

ui("btnAlbum").on("touch", function(){
	picMenuBg.visible = false;
	album.select(1, 400, -1, 50, function(data, e) {
		page.fire("im_to_select_image_back", data);
	});
});

ui("btnCamera").on("touch", function(){
	picMenuBg.visible = false;
	camera.capture(400, -1, 50, function(data, e) {
		var imgList = [];
		imgList.push(data);
		page.fire("im_to_select_image_back", imgList);
	});
});

